/*
 * Copyright (c)  2017
 * All rights reserved.
 * Test.java 2017-11-07 下午3:42
 */

package com.ueboot.weishop.common;

import org.apache.commons.lang.math.RandomUtils;

/**
 * 描述:TODO
 *
 * @author yangkui create on 2017-11-07 下午3:42.
 * @since 1.0
 */
public class Test {

    static int[] sspLottery = new int[100];
    //初始化中奖概率
    static {
        for (int j = 0; j < 100; j++) {
            if (j < 85) {
                //50块
                sspLottery[j] = 50;
            } else if (j < 95) {
                //100块
                sspLottery[j] = 100;
            } else {
                //200块
                sspLottery[j] = 200;
            }
        }

    }
    public static void main(String[] args) {
        Integer percent = Math.round((Float.valueOf(146) / Float.valueOf(300)) * 100);

        System.out.println(percent);

        /*for(int i=0;i<100;i++){
            String lotteryNum = String.format("%06d",  RandomUtils.nextInt(300));
            System.out.println(lotteryNum);
        }*/
    }

}